<template>
	<view class="cookers">
		<image src="../../static/9.png" class="cookertitle"></image>
		<view class="cookerbox">
			<view v-for="(item,index) in manlist" :key="index" class="cookersitem">
				<image :src="item.img" class="cookerimg"></image>
				<text class="cookertext">{{item.name}}</text>
				<image src="../../static/stars.png" class="star"></image>
			</view>
		</view>
	</view>
</template>

<script>
	import goods from '@/json/goods.json'
	export default {
		data() {
			return {
				manlist: [] //厨师列表
			}
		},
		methods: {

		},
		created() {
			this.manlist = goods.manlist
			// console.log(this.manlist)
		}
	}
</script>

<style>
	.cookers {
		padding: 10px 5px;

	}

	.cookertitle {
		height: 50px;
		width: 50%;
		display: block;
		margin: auto;
	}

	.cookerbox {
		display: flex;
		justify-content: space-around;
		margin-top: 15px;
	}

	.cookersitem {
		box-shadow: 1px 1px 10px 1px #ccc;
		width: 100px;
		height: 130px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.cookerimg {
		width: 70px;
		height: 70px;
		border-radius: 50%;
	}
	.cookertext{font-size: 14px;}
	.star{width: 100px;height: 20px;}
</style>
